﻿$(function () {
	$(".faqQuestion div").hide();
	$(".faqQuestion").click(function () {
		$(this).find("div.answer").slideToggle("fast");
	});

	$("#showAllConsumer").click(function () {
		if (document.getElementById("showAllConsumer").innerHTML == "Toon alle antwoorden") {
			document.getElementById("showAllConsumer").innerHTML = 'Verberg alle antwoorden';
			$("div.answerConsumer").show("fast");
		}
		else {
			document.getElementById("showAllConsumer").innerHTML = "Toon alle antwoorden";
			$("div.answerConsumer").hide("fast");
		}
	});

	$("#showAllVendor").click(function () {
		if (document.getElementById("showAllVendor").innerHTML == "Toon alle antwoorden") {
			document.getElementById("showAllVendor").innerHTML = 'Verberg alle antwoorden';
			$("div.answerVendor").show("fast");
		}
		else {
			document.getElementById("showAllVendor").innerHTML = "Toon alle antwoorden";
			$("div.answerVendor").hide("fast");
		}
	});

});